package Controle;

import DAO.ClienteDAO;
import Modelo.ClienteBean;
import java.util.List;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.SessionScoped;

@ManagedBean(name = "clientecontroller")
@SessionScoped
public class ClienteController {
    private List<ClienteBean> listCliente;

    public ClienteController() throws Exception {
        ClienteDAO cd = new ClienteDAO();
        listCliente = cd.consultar("");
    }

    public List<ClienteBean> getListCliente() {
        return listCliente;
    }

    public void setListCliente(List<ClienteBean> value) {
        this.listCliente = value;
    }    
}
